package com.zyx.mpdemo.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author Yaxi.Zhang
 * @since 2022/3/29 14:06
 */
@Data
@TableName("t_product")
public class Product {
    private Long id;
    private String name;
    private Integer price;
    /** 标识乐观锁版本号字段 */
    @Version
    private Integer version;
}
